package com.sun.pojo;

/**
 * @Author SunBingRui
 * @Date 2020/5/12 19:48
 */
public class User {
    private String name;

    public User(){
        System.out.println("User的无参构造方法被调用");
    }

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                '}';
    }
}
